package com.ltedu.system.service;

import cn.hutool.crypto.digest.BCrypt;
import com.ltedu.common.utils.SecurityUtils;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @className: Test
 * @auther: Jerry
 * @date: 2020/12/15 17:19
 * @desctiption: TODO
 * @version: 1.0
 */
public class Test {
    public static void main(String[] args) {
        String password = SecurityUtils.encryptPassword("123456");
        System.out.println(password);
        boolean matches = SecurityUtils.matchesPassword("123456", password);
        System.out.println(matches);
    }
}
